<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use app\system\middleware\Auth;
use think\facade\Route;

// 获取部门列表
Route::get('/system/dept/list', 'dept/list');

// 获取用户信息
Route::get('/system/dept/:id', 'dept/getInfo')->middleware(Auth::class);

// 修改部门
Route::put('/system/dept', 'dept/edit')->middleware(Auth::class);

// 删除部门
Route::delete('/system/dept/:id', 'dept/remove')->middleware(Auth::class);
